package com.qiaoba.api.job.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 定时任务VO
 *
 * @author ailanyin
 * @date 2023-09-08 13:43:11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysJobVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "任务ID")
    private String jobId;

    @Schema(description = "任务名称")
    private String jobName;

    @Schema(description = "任务组名")
    private String jobGroup;

    @Schema(description = "执行类方法")
    private String invokeTarget;

    @Schema(description = "cron执行表达式")
    private String cronExpression;

    @Schema(description = "cron计划策略 0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行")
    private String misfirePolicy;

    @Schema(description = "是否并发执行（1允许 0禁止）")
    private String concurrent;

    @Schema(description = "任务状态（1正常 0暂停）")
    private String status;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "下次执行时间")
    public Date nextValidTime;
}
